//

Array.prototype.unique = function () {
    var arr = [];
    this.forEach((value, index) => {
        if (arr.indexOf(value) < 0) {
            arr.push(value);
        }else {
            this.splice(index, 1);
        }
    });
    return this;
}